package JavaSE.CODE.javaIO;

import java.io.FileInputStream;
import java.io.InputStreamReader;
import java.nio.charset.StandardCharsets;

public class TEST {
    public static void main(String[] args) throws Exception {
        InputStreamReader inputStreamReader = new InputStreamReader(new FileInputStream("D:\\liryic.txt"));
        int count = 0;
        char[] chars = new char[1024];
        while((count=inputStreamReader.read(chars))>0){
            System.out.println(new String(chars, 0, count));
        }
    }
}
